﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Blank.Master"
    AutoEventWireup="true" CodeBehind="LeaveWordList.aspx.cs" Inherits="DMS.Web.Modules.Knowledge.LeaveWordList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="diy" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
    留言列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainHolder" runat="server">
    <script type="text/javascript" src="/Resources/Scripts/jquery.blockUI.js"></script>
    <div class="search">
        <!----------- 查询信息 ------------------>
        <table width="94%" cellpadding="0" cellspacing="0">
            <tr>
                <td class="form">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <th width="50px">
                                <nobr>
                                        留言内容：
                                    </nobr>
                            </th>
                            <td width="85px">
                                <asp:TextBox ID="ContentQ" runat="server" Width="80px"></asp:TextBox>
                            </td>
                            <th width="50px">
                                <nobr>
                                        创建人：
                                    </nobr>
                            </th>
                            <td width="85px">
                                <asp:TextBox ID="PublisherQ" runat="server" Width="80px"></asp:TextBox>
                            </td>
                            <th width="280px">
                                <nobr>
                                        留言时间在：<asp:TextBox ID="PublishTimeQ1" onClick="WdatePicker()" runat="server" Width="80px"></asp:TextBox>-<asp:TextBox ID="PublishTimeQ2" onClick="WdatePicker()" runat="server" Width="80px"></asp:TextBox>之间
                                    </nobr>
                            </th>
                            <td class="button">
                                <nobr>
                                        <asp:LinkButton ID="queryBtn" runat="server" ToolTip="查询" OnClick="BtnQuery_Click"><img src="/Themes/Default/btn_search.gif" /></asp:LinkButton>
                                    </nobr>
                            </td>
                        </tr>                      
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <%--数据列表--%>
    <asp:DataGrid ID="dataList" runat="server" AutoGenerateColumns="false" DataKeyField="LeaveWordID"
        CellPadding="0" CellSpacing="1" border="0"
        Width="97%" CssClass="dg_borderstyle" OnItemCommand="OnCommand">
        <HeaderStyle CssClass="dg_headerstyle"></HeaderStyle>
        <ItemStyle CssClass="dg_itemstyle" />
        <AlternatingItemStyle CssClass="dg_alternatingitemstyle" />
        <Columns>
            <asp:TemplateColumn HeaderText="留言内容">
                <ItemStyle Width="340px" HorizontalAlign="left" />
                <ItemTemplate>
                    <%#Eval("Content")%>
                </ItemTemplate>
            </asp:TemplateColumn>          
            <asp:TemplateColumn HeaderText="创建人">
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                <ItemTemplate>
                    <nobr><%#Eval("Leaver")%></nobr>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="留言时间">
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                <ItemTemplate>
                    <nobr><%#Eval("LeaveTime")%></nobr>
                </ItemTemplate>
            </asp:TemplateColumn>           
            <asp:TemplateColumn HeaderText="操作" Visible="true">
                <ItemStyle HorizontalAlign="Center" Width="30px" />
                <ItemTemplate>
                    <nobr>
                        <asp:LinkButton ID="DelCommandBtn" CommandName="Delete" onClientClick="javascript:return confirm('是否确认删除知识？')" runat="server">删除</asp:LinkButton>                                
                    </nobr>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </asp:DataGrid>
    <diy:AspNetPager ID="pager" runat="server" AlwaysShow="true" OnPageChanged="pager_PageChanged"
        Width="97%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox" TextBeforePageIndexBox="转到"
        TextAfterPageIndexBox="页" ShowCustomInfoSection="Left" CustomInfoHTML="总数：%RecordCount%，共 %PageCount% 页，当前为第%CurrentPageIndex%页"
        HorizontalAlign="right" FirstPageText="首页" PrevPageText="上页" NextPageText="下页"
        LastPageText="末页" CssClass="dg_pagestyle">
    </diy:AspNetPager>
    <div id="dvEmpty" runat="server" class="EmptyMsg" visible="false">
        没有查询到相应的留言信息。
    </div>
    <div id="noticeArea2" style="display: none;width:610px; height:450px; overflow:auto">
        <table style="width:100%">
            <tr>
                <td style="background-image:url(/Themes/Default/opinion_button.png);background-repeat:repeat; text-align:center">
                        <font id="title2" size="4" style="padding-right:25px" color="white"></font>
                        <img style="position:absolute;right:5px;cursor:hand;" width="25px" height="25px" onclick="hide();" src="/Resources/Images/pause.png" />
                </td>
            </tr>
            <tr>
                <td>
                    <div id="notice2" pageIndex="1" style="width:600px; height:350px; overflow:auto;">
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table align="center">
                        <tr>
                            
                            <td>
                               <span id="Span8" runat="server">
                                    <input type="button" class="com_btn3" value="关闭" id="Button7" onclick="hide()" />
                                </span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
